import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
Vue.config.productionTip = false

//按需引入文件
import './vant/vant.js'

//引入样式表
import './assets/css/normalize.css'

import './assets/font/iconfont.css'

import './assets/css/swl.less'

import './assets/css/base.css'

//引入swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/swiper-bundle.css'
Vue.use(VueAwesomeSwiper)

// 引用axios
import Axios from 'axios'
//引入axios自带的模板 qs ,所以安装axios后就不用安装qs了
import Qs from 'qs'

// 把axios 与 qs挂载到vue上
Vue.prototype.axios = Axios;
Vue.prototype.qs = Qs;

// 配置全局请求路径
Axios.defaults.baseURL = 'http://106.52.134.23:3000';
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
